﻿package net.wangit.view.unit.util;

import net.wangit.view.unit.UnitComponent;

public class UnitShowModeUtil {

	public UnitShowModeUtil() {
	}

	public static final String getModeKey(UnitComponent uc) {
		return getModeKey(uc.getDomain(), uc.getId());
	}

	public static final String getModeKey(String domain, String unitId) {
		StringBuffer key = (new StringBuffer("u.m.")).append(domain)
				.append(".").append(unitId);
		return key.toString();
	}
}
